import Vue from 'vue'
import Vuex from 'vuex'
// 注册
Vue.use(Vuex)
export default new Vuex.Store({
    state: {
        auth: 0,
        deptList: [],
        deptMap: new Map(),
        roleList: [],
    },
    mutations: {
        setAuth(state, data) {
            state.auth = data
        },
        setDeptList(state, data) {
            state.deptList = data
        },
        setDeptMap(state, data) {
            state.deptMap = data
        },
        setRoleList(state, data) {
            state.roleList = data
        }
    },
    actions: {
    }
})